package com.jimet.process;

import java.util.Hashtable;

public class TabContentPageController {

	private Hashtable<String, Hashtable<String, TabContentPageParam> > registeredTabPages;
	
	public TabContentPageController() {
		this.registeredTabPages	= new Hashtable<String, Hashtable<String,TabContentPageParam>>();
		intializePages();
	}
	
	private void intializePages()
	{
		Hashtable<String,TabContentPageParam> logoutTabHashtable			= new Hashtable<String, TabContentPageParam>();
		Hashtable<String,TabContentPageParam> homeTabHashtable				= new Hashtable<String, TabContentPageParam>();
		
		
		
		registeredTabPages.put(HeaderPageController.LOGOUT_PAGE, 		logoutTabHashtable);
		registeredTabPages.put(HeaderPageController.HOME_PAGE, 			homeTabHashtable);

	}
	
	public TabContentPageParam getTabPage ( String page , String pageIx )
	{
		Hashtable<String, TabContentPageParam> tmpTabPageParamsHash	= registeredTabPages.get(page);
		
		if ( tmpTabPageParamsHash == null )
			return null;
		
		TabContentPageParam returnObj	= tmpTabPageParamsHash.get(pageIx);
		return returnObj;
	}
	
}
